package com.admin.dao;

import java.util.ArrayList;

import org.apache.ibatis.annotations.Param;

import com.common.model.AdminUser;
import com.common.model.Course;
import com.common.model.Record;
import com.teacher.model.TeachCourse;

/**
 * 课程等管理
 * @author yww
 *
 */
public interface AdminTeachDao {
	/**
	 * 分页读取管理员数据
	 * @param start
	 * @return
	 */
	public ArrayList<Course> getAllCourse(int start);

	public  ArrayList<Course> getAllCourseByCourseNo(String no);
	
	public  Course getCourseByCourseId(int courseId);
	
	public int getAllCourseCount();

	public ArrayList<Course> getAllCourseNoPage();
	
	public int updateCourse(Course course);
	public int updateCoursePlan(Course course);
	public int insertCourse(Course course);
	public int deleteCourse(int courseId);
	
	
	public ArrayList<TeachCourse> getTeachCourseListByClgId(@Param("clg_id")int clgId,@Param("start")int start);
	public int getTeachCourseListCountByClgId(int clgId);
	public TeachCourse getTeachCourseByTcId(int tcId);
	public int insertTeachCourse(TeachCourse tc);
	public int deleteTeachCourse(int tcId);
}
